<?php
namespace app\index\controller;

use app\common\controller\HomeBase;
use org\SendMsg;
use think\Db;
use think\facade\Config;

class Help extends HomeBase
{
    public function index()
    {
        $help_id = (int)$this->request->param("help_id",17);
        $help = model("help")->where(['id' => $help_id])->find();
        if (empty($help)) {
            return $this->error("帮助信息不存在");
        }

        $help['content'] = str_replace("{site_name}",$this->siteConfig['site_title'],$help['content']);
        $help['content'] = str_replace("{email}",$this->siteConfig['email'],$help['content']);
        $help['content'] = str_replace("{qq}",$this->siteConfig['qq'],$help['content']);
        $this->site_seo("home");

        return $this->fetch('index',['help_id' => $help_id,'help1' => $help]);
    }

}
